package com.ruoyi.project.mgcmanage.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class Storage extends BaseEntity {
    private Integer storageMedId;
    private String storageMedName;
    private String storageMedCompany;
    private String storageMedFactory;
    private int storageNum;
    private double storagePrice;
    private int storageId;
    private int storagePid;
    private String storageSpec;


    public Storage() {
    }

    public Storage(Integer storageMedId, String storageMedName, String storageMedCompany, String storageMedFactory, int storageNum, double storagePrice, int storageId, int storagePid, String storageSpec) {
        this.storageMedId = storageMedId;
        this.storageMedName = storageMedName;
        this.storageMedCompany = storageMedCompany;
        this.storageMedFactory = storageMedFactory;
        this.storageNum = storageNum;
        this.storagePrice = storagePrice;
        this.storageId = storageId;
        this.storagePid = storagePid;
        this.storageSpec = storageSpec;
    }

    public String getStorageSpec() {
        return storageSpec;
    }

    public void setStorageSpec(String storageSpec) {
        this.storageSpec = storageSpec;
    }

    public Integer getStorageMedId() {
        return storageMedId;
    }

    public void setStorageMedId(Integer storageMedId) {
        this.storageMedId = storageMedId;
    }

    public String getStorageMedName() {
        return storageMedName;
    }

    public void setStorageMedName(String storageMedName) {
        this.storageMedName = storageMedName;
    }

    public String getStorageMedCompany() {
        return storageMedCompany;
    }

    public void setStorageMedCompany(String storageMedCompany) {
        this.storageMedCompany = storageMedCompany;
    }

    public String getStorageMedFactory() {
        return storageMedFactory;
    }

    public void setStorageMedFactory(String storageMedFactory) {
        this.storageMedFactory = storageMedFactory;
    }

    public int getStorageNum() {
        return storageNum;
    }

    public void setStorageNum(int storageNum) {
        this.storageNum = storageNum;
    }

    public double getStoragePrice() {
        return storagePrice;
    }

    public void setStoragePrice(double storagePrice) {
        this.storagePrice = storagePrice;
    }

    public int getStorageId() {
        return storageId;
    }

    public void setStorageId(int storageId) {
        this.storageId = storageId;
    }

    public int getStoragePid() {
        return storagePid;
    }

    public void setStoragePid(int storagePid) {
        this.storagePid = storagePid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Storage storage = (Storage) o;
        return storageMedId == storage.storageMedId &&
                storageNum == storage.storageNum &&
                Double.compare(storage.storagePrice, storagePrice) == 0 &&
                storageId == storage.storageId &&
                storagePid == storage.storagePid &&
                Objects.equals(storageMedName, storage.storageMedName) &&
                Objects.equals(storageMedCompany, storage.storageMedCompany) &&
                Objects.equals(storageMedFactory, storage.storageMedFactory) &&
                Objects.equals(storageSpec, storage.storageSpec);
    }

    @Override
    public int hashCode() {
        return Objects.hash(storageMedId, storageMedName, storageMedCompany, storageMedFactory, storageNum, storagePrice, storageId, storagePid, storageSpec);
    }

    @Override
    public String toString() {
        return "Storage{" +
                "storageMedId=" + storageMedId +
                ", storageMedName='" + storageMedName + '\'' +
                ", storageMedCompany='" + storageMedCompany + '\'' +
                ", storageMedFactory='" + storageMedFactory + '\'' +
                ", storageNum=" + storageNum +
                ", storagePrice=" + storagePrice +
                ", storageId=" + storageId +
                ", storagePid=" + storagePid +
                ", storageSpec='" + storageSpec + '\'' +
                '}';
    }
}
